home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
apps
/
104
/
applic
/
address.doc
next >
Wrap
Text File
|
1987-02-20
|
8KB
|
192 lines
STreet finder 1.0
Written by
John Buchanan
Dept of Computer Science
University of Toronto
Toronto, Ontario
M5S 1A4
This program is shareware
If you like it a lot then send me
some money
Introduction
STreet finder is an address book that was developed with the
user interface in mind. In fact the interface was completed
before the program had the ability to handle any addresses. The
idea was to simulate an address book. Notice that address books
are extremely user friendly. When was the last time that your
address book told you that you entered a wrong entry into it?
STreet finder incorporates a feature that is not found in
ordinary address books. If the first character in the name field
is not the same as the current page then a cross referenced entry
can be seen on the appropriate page.
i.e. If John Buchanan appears in the name field of an entry
in page B then this entry can be seen on Page J
Pages for particular letters are accessed by either clicking
the mouse in the appropriate chicklet (Rectangle with the letter
in it) or by depressing the appropriate key on the keyboard.
When the book is opened there are several things that must be
noticed.
1) The current page is indicated by highlighting the page
chicklet. Also there is a superscript above the letter in
the highlighted chicklet. This indicates the page number
for the current letter. i.e. a letter can have more than 8
entries.
2) On the right hand side of the new command line there are
two chicklets with a left arrow and a right arrow in them.
With these chicklets you can flip through the book. The
above action can also be accomplished by using the left and
right arrows on the key board.
3) On the left hand side of the command line there are two
commands.
Insert This inserts a new address blank at the end of the
current page. (before any cross referenced entries
for this page) This can also be accomplished by
using the insert key on the keyboard.
Delete This places you in delete mode. The mouse cursor
says DELETE in it and you have to point at the
address that you want to delete. If you point at a
valid address an alert box comes up asking you if
you are sure that you want to delete the address.
If you point at an invalid address you will exit
delete mode. You can enter the delete mode by
using the delete key on the keyboard.
4) CLOSE. This simply closes the book and redisplays the
cover of the box. This can also be done using the
Clr Home key
5) You are wondering how to edit an address field.
In order to edit point at the address field that you want
to edit. A cursor appears at the end of the line that you pointed
at and the mouse cursor now says edit. ( There is a slight bug
here. If you point at the line between two entries in a address
field the cursor says edit but no editing cursor appears. Simply
point the cross that is now on the mouse cursor at the entry that
you want to edit.)
Because of the cross referencing feature you can edit all
entries in a cross referenced address exept the name. If you want
to edit the name you must edit the original entry. (as you change
the first letter its cross reference will move from page to page.)
EDIT MODE key interpretation
Left Arrow Move edit cursor one character to the
left.
Right Arrow Move edit cursor one character to the
right.
Up Arrow Move to previous entry in address field.
Down Arrow Move to next entry in the address field.
Shift Left Arrow Move to the beginning of current entry.
Shift Right Arrow Move to the end of current entry.
Alphabetical/
Numerical/
Shifted Numeric Insert into the current entry.
8) ending the program or exiting the desk accesory
Clicking in the upper left close box will cause you to exit
the address book. If you have edited any address then you will be
asked wether you want to save the changes. If you say no an
internal flag is set and you will not be prompted again.
Also My disk i/o is not to intelligent so I have not figured
out what to do with empty files so if you atempt to save an empty
book I have made it so that it saves my address. If you have
another address in the book you can delete my address and be done
with me.
8b) File format
All data is stored in stfind.dat which has to be on the root
directory of the a: drive (I will allow this to change later on).
The Data is stored in ascii format. Not terribly eficient but one
of my main beefs against all the other address book managers is
that it is hard to access the data.
each address line fits on one line of the output file.
For example John Buchanan
tel1 tel2
line1
line2
line3 code
on page B
is stored
B<cr>
John Buchanan<cr>
tel1<cr>
tel2<cr>
line1<>cr> ... and so on. you get the idea
7) PRINT
This is something that I've just started playing with. It
is only accessible from the program. I assumed that printing out
26+ pages of stuff is not something that you will want to do all
the time. Right now it just prints out all the pages that are
required. >=27 One for the tile page. What you do with this
output is to cut all the pages at the dotted line and fold each
page so that the addresses are on the outside of the page. Now
staple all the pages together in order to form a little booklet.
Voilà you have a little address book. In six months print out an
updated one. I do not claim that this part of the program is very
clean. (I have a Roland 1011) printer which I think is 100%
compatible with an Epson LX-80 printer. In the next version
(May) I Hope to have a better interface to this part of the
program.
I have developed two versions of the program. One is a Desk
accessory and the other is a program. I read somewhere that a DA
could not dynamically allocate memory, this forced me to develop
different data structure management schemes. The DA will only let
you 10 new addresses per session. The program allow you to add as
many as you want in one session.
The DA runs best if you close the window before you exit a
particular application.
I hope that this is useful. I find it very useful and I have had
a lot of fun developing it. I don't think that I'd be willing to
let the source code float around right now. I want to retain some
control on this for now. Maybe even get it to run on a color
monitor ( Probability ~=0) some day.
I'm In the process of finishing my course requirements for my
masters so don't expect any immediate updates.
Enjoy
Pardon the hacked up documentation above. It is midnight after a
long day.